const YoloDetector = require('../yolo');
const APP = require('../APP');
class index{
    androidBot = null;
    constructor(client){
        this.GameClient = client;
        this.androidBot = this.GameClient.androidBot;
    }
    async run(){
        let startJudd =  await this.androidBot.startApp('com.tencent.jkchess');
        if(!startJudd){
            console.error('启动游戏失败');
            return false;
        }
        await APP.sleep();
        return true;
    }
}

module.exports = index;